package modifiers_package;

public class MyClass2 {
    public int x;

    public MyClass2(int y) {
        System.out.println("包modifiers_package.构造MyClass");
        x = y + 10;
    }
    public static void main(String[] args) {
        MyClass2 myObj = new MyClass2(10);
        System.out.println(myObj.x);
    }
}
/*
包modifiers_package.构造MyClass
20
 */